<?php  defined('SYSPATH') or die('No direct script access.');


class Emailhelper {
    
    public static function process($string, $data) {
        
        
        foreach($data as $key=>$value) {
            $string = str_ireplace('{'.$key.'}', $value, $string);
        }
        
        return $string;
    }
    
}

?>
